package org.meteorshower.employee_depart.controller;


import com.baomidou.mybatisplus.extension.service.IService;
import org.meteorshower.cms_common.controller.BaseController;
import org.meteorshower.employee_depart.entity.RewardAndPunishment;
import org.meteorshower.employee_depart.service.RewardAndPunishmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * 奖惩明细类控制层
 * @author Meteorshower
 * @version 1.0
 * @since 2025-06-08
 * @see org.meteorshower.cms_common.controller.BaseController 继承自BaseController
 * @apiNote 默认CRUD已实现，更多额外功能需要额外添加
 * */
@RequestMapping("api/rap")
@RestController
@ResponseBody
public class RewardAndPunishmentController extends BaseController<RewardAndPunishment> {

    private final RewardAndPunishmentService rewardAndPunishmentService;

    @Autowired
    public RewardAndPunishmentController(RewardAndPunishmentService rewardAndPunishmentService) {
        this.rewardAndPunishmentService = rewardAndPunishmentService;
    }
    @Override
    public IService<RewardAndPunishment> getService() {
        return rewardAndPunishmentService;
    }
}
